<?php

namespace Database\Factories;

use App\Models\UserInvoice;
use Illuminate\Database\Eloquent\Factories\Factory;

class UserInvoiceFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = UserInvoice::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'user_id' => $this->faker->numberBetween(0, 10),
            'order_id' => $this->faker->numberBetween(0, 10),
            'header_type' => $this->faker->numberBetween(0, 1),
            'type' => $this->faker->numberBetween(0, 1),
            'name' => $this->faker->text(20),
            'duty_number' => $this->faker->creditCardNumber,
            'drawer_phone' => $this->faker->phoneNumber,
            'email' => $this->faker->safeEmail,
            'tell' => $this->faker->e164PhoneNumber,
            'address' => $this->faker->address,
            'bank' => $this->faker->bank,
            'card_number' => $this->faker->iban,
            'invoice_status' => $this->faker->randomElement(['notInvoiced', 'invoiced', 'refundInvoiced']),
            'is_default' => $this->faker->numberBetween(0, 1),
        ];
    }
}
